<%--
  Created by IntelliJ IDEA.
  User: Myth
  Date: 1/21/2017
  Time: 10:51 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Login</title>
    <script>
        function change() {
            var code = document.getElementById("code");
            code.src = "/JavaWeb/CreateValidateCode?time="+ new Date();
        }
    </script>
</head>
<body>
    <form action="/JavaWeb/CheckValidateCode" method="post">
        <input type="text" name="code">
        <span><img id="code" src="/JavaWeb/CreateValidateCode" alt="点击更换" onclick="change()"></span>
        <input type="submit" value="Login">
    </form>
    <span color="red">
        <%=
        request.getAttribute("errorinfo")==null?"":request.getAttribute("errorinfo")
        %>

    </span>
</body>
</html>
